<?php
/**
 * Соглашение об именовании маршрутов
 * - маршруты группируются по модулям
 * - название маршрута в lowercase: module_controller_action
 * - название ссылок в lowercase
 * @example
   $router->addRoute('module_controller_action', new Zend_Controller_Router_Route(
                '/name',
                array(
                    'module'        => 'module',
                    'controller'    => 'controller',
                    'action'        => 'action'
                )
        ));
 */
$router = new Zend_Controller_Router_Rewrite();

/**
 * Модуль default 
 */
$router->addRoute('default_index_index', new Zend_Controller_Router_Route(
            '/',
            array(
                'module'        => 'default',
                'controller'    => 'index',
                'action'        => 'index'
            )
        ));

/**
 * Модуль patient
 */
$router->addRoute('patient_index_index', new Zend_Controller_Router_Route(
            '/patient',
            array(
                'module'        => 'patient',
                'controller'    => 'index',
                'action'        => 'index'
            )
        ));

/**
 * Модуль registration
 */
$router->addRoute('registration_index_index', new Zend_Controller_Router_Route(
            '/registration',
            array(
                'module'        => 'registration',
                'controller'    => 'index',
                'action'        => 'index'
            )
        ));

/**
 * Модуль authorization
 */
$router->addRoute('authorization_index_index', new Zend_Controller_Router_Route(
            '/login',
            array(
                'module'        => 'authorization',
                'controller'    => 'index',
                'action'        => 'index'
            )
        ));

$router->addRoute('authorization_index_logout', new Zend_Controller_Router_Route(
            '/logout',
            array(
                'module'        => 'authorization',
                'controller'    => 'index',
                'action'        => 'logout'
            )
        ));